package com.lx.patterns.builder;

/**
 * @ClassName Director
 * @Description: //todo
 * @Author: 落雪
 * @CreateDate: 2025/1/15 20:33
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/1/15 20:33
 * @UpdateRemark:
 * @Version: 1.0
 */
public class Director {

    private Builder builder;

    public void setBuilder(Builder builder) {
        this.builder = builder;
    }

    public Bike construct(){
        builder.setFrame();
        builder.setSeat();
        return builder.createBike();
    }
}
